import QtQuick
import QtQuick.Controls
Button{

    id:root

    height: 180
    width: 270

    text:"关卡按钮"



    contentItem:Item{
        anchors.fill: parent
        Image{
            anchors{
                top:parent.top
                left:parent.left
                right:parent.right
                bottom:txt.top
                bottomMargin: 4
            }

            source: root.icon.source

        }

        Text {
            id:txt
            anchors{
                bottom:parent.bottom
                horizontalCenter: parent.horizontalCenter
            }

            text: root.text
        }

    }


    background: Rectangle{
        color:Qt.rgba(0,0,0,0.2)
    }

}
